package com.example.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("goods")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Goods {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    private String img;
    private double price;
    private int num;
    private String info;
    private int status;  // 0 没上架  1 已上架
    @TableField(value = "business", updateStrategy = FieldStrategy.NEVER)
    private String business;  //所属商家
}
